<template>
    <el-container direction="vertical">
        <Header/>
        <el-container class="auto-width" direction="vertical">
            <el-tabs v-model="activeTab" type="border-card">
                <el-tab-pane label="配置管理" name="setting">
                    <AdminSetting v-if="activeTab === 'setting'"></AdminSetting>
                </el-tab-pane>
                <el-tab-pane label="用户管理" name="user">
                    <AdminUser v-if="activeTab === 'user'"></AdminUser>
                </el-tab-pane>
                <el-tab-pane label="视频分类" name="class">
                    <AdminClass v-if="activeTab === 'class'"></AdminClass>
                </el-tab-pane>
                <el-tab-pane label="采集站点" name="site">
                    <AdminSite v-if="activeTab === 'site'"></AdminSite>
                </el-tab-pane>
            </el-tabs>
        </el-container>
        <Footer/>
    </el-container>
</template>

<script>
    import Header from '../components/Header';
    import Footer from "../components/Footer";
    import AdminUser from "../components/admin/User";
    import AdminSetting from "../components/admin/Setting";
    import AdminClass from "../components/admin/Class";
    import AdminSite from "../components/admin/Site";

    export default {
        name: 'Admin',
        components: {
            Footer,
            Header,
            AdminUser,
            AdminSetting,
            AdminClass,
            AdminSite,
        },
        data() {
            return {
                activeTab: 'setting',
            };
        },
        methods: {},
    };
</script>

<style scoped lang="scss">
    main {
        min-height: 400px;
    }
</style>
